package com.carnation.bean;

import java.util.ArrayList;
import java.util.List;

public class GroupMenu {
	private String id;
	private String name;
	private String icon;
	private List<Menu> menuList;
	
	public GroupMenu(String id,String name,String icon){
		this.id = id;
		this.name = name;
		this.icon = icon;
	}
	
	public void addMenu(Menu menu){
		if(menuList != null){
			menuList.add(menu);
		}
		else{
			menuList = new ArrayList<Menu>();
			menuList.add(menu);
		}
	}
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public List<Menu> getMenuList() {
		return menuList;
	}

	public void setMenuList(List<Menu> menuList) {
		this.menuList = menuList;
	}
}


